<template>
	<u-popup v-model="popShow" mode="center" border-radius="40" :mask-close-able="false">
		<view class="popup-view">
			<view class="popup-top-view">
				<view class="popup-top-text">
					{{popupObject.title}}
				</view>
				<view class="popup-top-text1">
					{{popupObject.desc}}
				</view>
			</view>
			<view class="popup-bottom-view">
				<view class="popup-bottom-btn"  @click="getClickShow">{{popupObject.btn}}</view>
				<view class="popup-bottom-desc">{{popupObject.tips}}</view>
			</view>
		</view>
	</u-popup>
</template>

<script>
	export default {
		props:{
			popupObject:Object,
			popShow:Boolean
		},
		data(){
			return{}
		},
		methods:{
			getClickShow(){
				this.$emit('clickShow',false)
			}
		}
	}
</script>

<style lang="scss">
	/* // 弹窗 */
	.popup-view{
		width: 520rpx;
		height: 600rpx;
		background: url("../../static/index/13.png") no-repeat;
		background-size: 100% 100%;
		padding: 30rpx;
		position: relative;
	}
	.popup-top-view{
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		// margin-top: 20rpx;
	}
	.popup-top-text1{
		font-size: 30px;
		color: #EDD4A3;
		word-break: break-all;
	}
	.popup-top-text{
		font-size: 30px;
		color: #EDD4A3;
	}
	.popup-bottom-view{
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		position: absolute;
		bottom: 30rpx;
		left: 100rpx;
	}
	.popup-bottom-btn{
		background: radial-gradient(45% 76% at 50% 23%, #FDE5B7 0%, #F0AA6A 100%);
		border-radius: 30rpx;
		font-size: 15px;
		color: #A11919;
		padding: 10rpx 80rpx;
		box-sizing: border-box;
		border: 1px solid #FFECC8;
		margin-bottom: 20rpx;
	}
	.popup-bottom-desc{
		font-size: 12px;
		color: #FFECC8;
	}
</style>